﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using JLL.China.Model;
using JLL.China.Infrastructure.Services;
namespace JLL.China.Web.Controllers
{
    public class RunController : Controller
    {
        //
        // GET: /Run/

        public ActionResult Index()
        {
            var media = new ListingMedia
            {
                ListingsFID = 16,
                Filename = "16.jpg",
                IsActive = true,
                IsDefault = true,
                Orders = 1,
                FileData = null,
                TypeOfUpload = "IMAGE"
            };
            ListingMediaService.Create(media);
            ListingMediaService.Save();
            return View();
        }
        
    }
}
